package com.doraemon.module.buyer.entity;

import lombok.Data;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.math.BigDecimal;

/**
 * 商品
 * Created by doraemon on 2017/9/10.
 */
@Entity
@Data
@DynamicUpdate
public class ProductInfo {
    @Id
    /**商品ID.*/
    private  String productId;
    /**商品名称.*/
    private  String productName;
    /**商品价格.*/
    private BigDecimal productPrice;
    /**商品库存.*/
    private Integer productStock;
    /** 商品描述. */
    private  String productDescription;
    /** 小图. */
    private String productIcon;
    /** 商品状态.*/
    private Integer productStatus;
    /**类目编号.*/
    private Integer categoryType;


}
